package com.example.units;

import android.annotation.SuppressLint;

@SuppressLint("UseSparseArrays")
public class GameInfo {

	private TeamList teams;
	private int roundTime;
	private int currentTeam;
	
	public GameInfo()
	{
		teams = new TeamList();
		roundTime = 0;
		currentTeam = -1;
	}
	
	public GameInfo(TeamList teams, int roundTime)
	{
		this.teams = teams;
		this.roundTime = roundTime; 
		currentTeam = -1;
	}
	
	public TeamList getTeams()
	{
		return this.teams;
	}
	
	public void eraseAll()
	{
		this.teams.eraseAllTeams();
	}
	
	public void setRoundTime(int roundtime)
	{
		this.roundTime = roundtime;
	}
	
	public int getRoundTime()
	{
		return this.roundTime;
	}
	
	public void addTeam(int key, Team team)
	{
		teams.addTeam(key, team);
	}
	
	public void eraseTeam(int key)
	{
		teams.eraseTeam(key);
	}
	
	public int getTeamsCount()
	{
		return this.teams.getTeamCount();
	}
	
	public int getFirstTeam()
	{
		return teams.getNotGamingFirstCommand();
	}
	
	public void setRoundFalseForAll()
	{
		teams.setRoundFalseAll();
	}
	
	public void setCurrentTeam(int numb)
	{
		teams.setCurrent(numb);
	}
	
	public void setScore(int numb, int score)
	{
		teams.setScoreCurrent(numb, score);
	}
	
	public int getScore(int numb)
	{
		return teams.getScore(numb);
	}
	
	public int getCurrent()
	{
		return currentTeam;
	}
	
	public void setCurrent(int current)
	{
		currentTeam = current;
	}
	
	public int getMaxScore()
	{
		return teams.getMaximalScore();
	}
	
	
}
